﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="BuXiaChu.OrderDishes.Web.CallCenter.Order.OrderList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link media="screen, projection" rel="stylesheet" type="text/css" href="../css/Blueprint/screen.css" />
    <link media="screen, projection" rel="stylesheet" type="text/css" href="../css/main.css" />

    <script type="text/javascript" src="../js/Extend.js"></script>

    <script type="text/javascript" src="../js/Common.js"></script>

    <script type="text/javascript" src="../js/jquery-vsdoc.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="boxc">
            <span>订单编号</span><input type="text" id="txt_OrderId" />
            <span>送餐地址</span><input type="text" id="txt_Address" />
            <span>来电</span><input type="text" id="txt_CallerId" />
            <input type="button" id="btn_Search" value="查询" />
        </div>
        <div class="boxc" id="div_List">
            数据加载中...
        </div>
    </div>
    </form>
</body>
</html>

<script type="text/javascript">
    (function() {
        $(jDoc("btn_Search")).click(function() {
            var postData = { t: 3 };
            postData.orderId = jDoc("txt_OrderId").value.trim();
            postData.address = jDoc("txt_Address").value.trim();
            postData.callerId = jDoc("txt_CallerId").value.trim();
            $.post("GetDataList.ashx", postData,
            function(data) {
                if (data.success) {
                    jDoc("div_List").innerHTML = data.message;
                } else {
                    jDoc("div_List").innerHTML = "查询失败，请刷新页面重新查询";
                }
            }, "json");
        });
        $(jDoc("btn_Search")).click();

        $(document.body).bind("keypress",
            function() {
                var keyCode = jDoc.getEvent().keyCode;
                if (keyCode == 13) {
                    jDoc("btn_Search").click();
                }
            }
        );
    })();
</script>

